﻿<%@ Page Language="C#" MasterPageFile="~/manager/logger.master" AutoEventWireup="true"
    CodeFile="role-permission.aspx.cs" Inherits="SmartParking.Web.Manager.RolePermissions"
    Title="SmartParking >> Manager :: Assign Permissions" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="ADEVSO" Namespace="ADEVSO.Web.UI.WebControls" TagPrefix="ADEVSO" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LoggerContentPlaceHolder" runat="Server">
    <asp:UpdatePanel ID="upAssing" ChildrenAsTriggers="true" runat="server">
        <ContentTemplate>
            <table border="0" cellspacing="8" cellpadding="2">
                <tr>
                    <td colspan="3">
                        <h1>Assign Permissions</h1>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="left">
                        <asp:Label ID="lbRole" runat="server" Text="Role:" AssociatedControlID="cboxRole" />
                        <asp:DropDownList ID="cboxRole" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cboxRole_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:Label ID="lblError" runat="server" Visible="false" Font-Bold="true" Font-Size="X-Small"
                            ForeColor="Red" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Available Permissions</b>
                    </td>
                    <td>
                    </td>
                    <td>
                        <b>Assigned Permissions</b>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:ListBox ID="lbxAvailablePermissions" runat="server" Width="200px" Height="150px"
                            SelectionMode="Multiple"></asp:ListBox>
                    </td>
                    <td>
                        <asp:Button ID="btnMoveRight" runat="server" Text=">>" Font-Bold="true" OnClick="btnMoveRight_Click" />
                        <br />
                        <br />
                        <asp:Button ID="btnMoveLeft" runat="server" Text="<<" Font-Bold="true" OnClick="btnMoveLeft_Click" />
                    </td>
                    <td>
                        <asp:ListBox ID="lbxAssignPermissions" runat="server" Width="200px" Height="150px"
                            SelectionMode="Multiple"></asp:ListBox>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
